Python, Pygame, and Raspberry Pi Game Development

Python, Pygame, and Raspberry Pi Game Development

作者: Kelly Sloan
出版社: Apress
出版在: 2019-05-29
ISBN-13: 9781484245323
ISBN-10: 1484245326
裝訂格式: Quality Paper - also called trade paper
總頁數: 353 頁





內容描述


Expand your basic knowledge of Python and use PyGame to create fast-paced video games with great graphics and sounds. This second edition shows how you can integrate electronic components with your games using the build-in general purpose input/output (GPIO) pins and some Python code to create two new games. You'll learn about object-oriented programming (OOP) as well as design patterns, such as model-view-controller (MVC) and finite-state machines (FSMs). Whether using Windows, macOS, Linux, or a Raspberry Pi, you can unleash the power of Python and PyGame to create great looking games. The book also includes complete code listings and explanations for "Bricks," "Snake," and "Invaders"--three fully working games. These allow you to get started in making your own great games and then modify them or build your own exciting titles. The concepts are further explained using games such as "Copycat," where the player must concentrate and repeat the sequence of lights and sounds, and "Couch Quiz," in which PyGame and electronic components create a quiz game for 2-4 players.What You'll LearnGain basic knowledge of Python and employ it for game developmentStudy game projects you can use as templates, such as Bricks, Snake, and InvadersWork with user-defined functions, inheritance, composition, and aggregationImplement finite state machinesIntegrate your game with electronics using the GPIO pinsWho This Book Is ForExperienced coders or game developers new to Python, PyGame and Raspberry Pi would find this book helpful. It is also for beginners interested in getting into game development.


作者介紹


Sloan Kelly has worked in the games industry for nearly 12 years. He has worked on a number of AAA and indie titles and currently works for an educational game company. He lives in Ontario, Canada with his wife and children. Sloan is on Twitter @codehoose and makes YouTube videos in his spare time.




相關書籍

ESP32 物聯網專題製作實戰寶典

作者 Vedat Ozan Oner CAVEDU教育團隊 曾吉弘 譯

2019-05-29

物聯網技術基礎

作者 劉持標 林瑜

2019-05-29

圖解 RPA 機器人流程自動化入門:10堂基礎課程+第一線導入實證,從資料到資訊、從人工操作到數位勞動力,智慧化新技術的原理機制、運作管理、效益法則

作者 西村泰洋Yasuhiro Nishimura 陳彩華 譯;莊永裕 審定

2019-05-29